package com.csdj.service;

import com.csdj.entity.Tpaper;
import com.csdj.entity.TpaperExample;
import com.csdj.mapper.TpaperMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TpaperService {

    @Resource
    private TpaperMapper tpaperMapper;


    public List<Tpaper> Tpaperlist() {
        return tpaperMapper.selectByExample(new TpaperExample());
    }
    public int Tpaperadd(Tpaper tpaper) {
        return tpaperMapper.insert(tpaper);
    }
    public  int deleteByPrimaryk(int id){

        return tpaperMapper.deleteByPrimaryKey(id);
    }
}
